package com.his.api.controller;

import com.his.api.service.UserService;
import com.his.dao.domain.dto.ListDto;
import com.his.dao.domain.dto.UserAllIdDto;
import com.his.dao.domain.entity.User;
import com.his.util.annotation.RequiresLogin;
import com.his.util.annotation.RequiresPermissions;
import com.his.util.constant.RedisConstant;
import com.his.util.result.RestResult;
import com.his.util.result.RestResultBuilder;
import com.his.util.util.StringUtil;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.time.LocalDateTime;
import java.util.List;

@RestController
@RequestMapping("/user")
public class UserController {
    @Resource
    private UserService userService;

    @RequiresLogin
    @RequestMapping("/all/id")
    public RestResult allId(@RequestBody UserAllIdDto userAllIdDto) {
        return userService.allId(userAllIdDto);
    }
}
